<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocList.aspx.cs"  Inherits="PayRoller.Manage.Documents.DocList" %>

<%@ Register Assembly="Huayou.Common" Namespace="Huayou.UI.WebControls" TagPrefix="cc1" %>
<%@ Register src="../../Include/UOrgNameInput.ascx" tagname="UOrgNameInput" tagprefix="uc1" %>
<%@ Import Namespace="PayRoller.Code" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body topmargin="0" leftmargin="0">
    <form id="form1" runat="server">
    <table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" class="NormalText">
        <tr>
            <td style="height: 40px" class="HeadText">
                Documents list
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="1" cellpadding="1" id="TABLE1" onclick="return TABLE1_onclick()">
                    <tr>
                        <td height="22" colspan="4">
                            Please input file name:
                            <asp:TextBox ID="txtFileName" runat="server" Width="160px"></asp:TextBox>
                             Please select org name:<uc1:UOrgNameInput ID="UOrgNameInput1" runat="server" />
&nbsp;&nbsp;
                            <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="submitBtn" OnClick="btnSearch_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="22" align="center">
                <cc1:DataGridTable CellPadding="1" CellSpacing="1" BackColor="#cccccc" Width="90%"
                    ID="dgdList" runat="server" BorderWidth="0px" BorderStyle="None" IsAllowPaging="True"
                    PageSize="12" OnDataBinding="dgdList_DataBinding" OnPageIndexChanged="dgdList_PageIndexChanged"
                    AutoGenerateColumns="False" CssClass="tableGrid" MaxRecord="0" PageCSS="scrollButton"
                    AllowPaging="True" OnItemDataBound="dgdList_ItemDataBound">
                    <PagerStyle CssClass="gridPager" BackColor="White" />
                    <SelectedItemStyle CssClass="gridSelectedItem" />
                    <ItemStyle Height="25px" CssClass="gridItem" BackColor="White"></ItemStyle>
                    <HeaderStyle Height="22px" CssClass="right-ta-ti01" Font-Bold="True"></HeaderStyle>
                    <AlternatingItemStyle CssClass="gridAltItem" />
                    <FooterStyle CssClass="gridFooter" BackColor="White" />
                    <EditItemStyle CssClass="gridEditItem" />
                    <Columns>
                        <asp:BoundColumn DataField="Sid" HeaderText="Sid"></asp:BoundColumn>
                        <asp:BoundColumn DataField="Filename" HeaderText="File name"></asp:BoundColumn>
                        <asp:BoundColumn DataField="Pubdate" HeaderText="Pubdate" DataFormatString="{0:dd/MM/yyyy}"></asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="OrgName">
                            <ItemTemplate>
                                <asp:HyperLink ID="HYOrgName" runat="server">OrgName</asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Download">
                            <ItemTemplate>
                                <asp:HyperLink ID="HYDownload" runat="server">Download</asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Delete">
                            <ItemTemplate>
                                <a href="DocDel.aspx?Sid=<%# Eval("Sid")%>" onclick="return confirm('Really Delete It?');">
                                    Delete</a>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                </cc1:DataGridTable>
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:TextBox ID="txtParamstr" runat="server" Visible="False" Width="48px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Label ID="lblTip" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
